package com.dc.project.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dc.common.validated.DeleteGroup;
import com.dc.common.validated.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统菜单权限表(SysMenu)实体类
 *
 * @author zhuangcy
 * @since 2021-06-04 12:16:10
 */
@TableName("sys_menu")
@Data
@ApiModel(value = "系统菜单权限表")
public class SysMenu implements Serializable {
    private static final long serialVersionUID = -56066405340470500L;
    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {UpdateGroup.class, DeleteGroup.class})
    @TableId(value = "menu_id", type = IdType.AUTO)
    @ApiModelProperty(name = "menuId", value = "主键")
    private Integer menuId;
    /**
     * 父id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(name = "parentId", value = "父id")
    private Integer parentId;
    /**
     * 菜单名称
     */
    @TableField(value = "menu_name")
    @ApiModelProperty(name = "menuName", value = "菜单名称")
    private String menuName;
    /**
     * 菜单类型（0按钮 1菜单）
     */
    @TableField(value = "menu_type")
    @ApiModelProperty(name = "menuType", value = "菜单类型（0按钮 1菜单）")
    private String menuType;
    /**
     * 菜单位置
     */
    @TableField(value = "menu_slot")
    @ApiModelProperty(name = "menuSlot", value = "菜单位置")
    private Integer menuSlot;
    /**
     * 权限字符
     */
    @TableField(value = "permission", updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(name = "permission", value = "权限字符")
    private String permission;
    /**
     * 状态（0正常 1停用）
     */
    @TableField(value = "status")
    @ApiModelProperty(name = "status", value = "状态（0正常 1停用）")
    private String status;
    /**
     * 创建者id
     */
    @TableField(value = "created_id", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdId", value = "创建者id")
    private Integer createdId;
    /**
     * 创建者
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdBy", value = "创建者")
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    private Date createdTime;
    /**
     * 更新者id
     */
    @TableField(value = "updated_id", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedId", value = "更新者id")
    private Integer updatedId;
    /**
     * 更新者
     */
    @TableField(value = "updated_by", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedBy", value = "更新者")
    private String updatedBy;
    /**
     * 更新时间
     */
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    private Date updatedTime;


}